package com.cd.javacxy.module.web.service;

import com.cd.javacxy.common.model.entity.CxyAttachment;
import com.cd.javacxy.common.model.entity.CxyKnowledge;
import com.cd.javacxy.common.model.query.KnowledgeQuery;
import com.cd.javacxy.common.utils.PageResult;
import com.cd.javacxy.exception.BussinessException;

import java.util.List;

/**
 * CxyKnowledge的服务接口
 *
 * @author yanghy
 */
public interface CxyKnowledgeService {

    PageResult<CxyKnowledge> findKnowledgeByPage(KnowledgeQuery knowledgeQuery);

    CxyKnowledge showKnowledge(Integer knowledgeId, Integer userId) throws BussinessException;

    int addKnowledge(CxyKnowledge knowledge, CxyAttachment attachment) throws BussinessException;

    List<CxyKnowledge> findKnowledgeList();

    int deleteBatch(Integer[] ids) throws BussinessException;

    int updateStatusBatch(Integer[] ids) throws BussinessException;
}
